<template>
	<view class="wrap" style="padding-bottom: 60px;">
		<view class="search">
			<u-search v-model="queryParam.orderParams" @custom="search" @search="search"></u-search>
		</view>
		<view v-for="(item,index) in list" :key="item.id">
			<u-card class="task-list-item" :border="false" padding="20" margin="20rpx">
				<view slot="head" style="display: flex;align-items: center;justify-content: space-between;">
					<view style="display: flex;align-items: center;font-size: 30rpx;"></image>{{item.payableCode}}</view><view style="color: #999999;font-size: 22rpx;">{{item.createTime}}</view>
				</view>
				<view class="" slot="body">
					<u-row gutter="16">
						<u-col span="12">
							<view class="apply-text"><span>客户：</span>{{item.customerName}}</view>
							<view class="apply-text"><span>总金额：</span>{{item.totalAmount}}</view>
							<view class="apply-text"><span>已付金额：</span>{{item.payAmount}}</view>
							<view class="apply-text"><span>未付金额：</span>{{item.hasAmount}}</view>
						</u-col>
					</u-row>
					
				</view>
				<view class="apply-list-foot" slot="foot" style="text-align: right;color: #58ca93;">
					审批通过
				</view>
			</u-card>
		</view>
	</view>
	
</template>

<script>
export default {
	data() {
		return {
			show: false,
			queryParam: {
				orderParams:''
			},
			list:[],
			
		}
	},
	created(){
		this.financialList();
	},
	methods: {
		navTo(url) {
			uni.navigateTo({
				url: url
			});
		},
		financialList(){
			this.$u.api.financialList(this.queryParam).then(res => {
				console.log(res);
				this.list = res.data.list
			})
		},
		search(){
			this.financialList();
		}
	}
	
}
</script>

<style lang="scss" scoped>
@import 'index.scss';
page {
	background-color: #f5f5f5;
}
.wrap .search{
	background: #ffffff;
}
.apply-text{
	font-size: 28rpx;
	color: #333333;
	span{
		color: #999999;
	}
}
.user-images{
	width: 28px;
	height:28px;
	margin-right: 8px;
}
.apply-list-foot{
	font-size: 28rpx;
}
.personnel-list{
	display: flex;
	align-items: center;
	flex-wrap:wrap;
	.personnel-user{
		position: relative;
		margin: 5px 9px 0;
	}
	.user-images{
		width: 48px;
		height:48px;
		margin-right:0;
		
	}
	.iconfont{
		position: absolute;
		top:-12px;
		right:-5px;
		color: #FE0100;
	}
}
</style>